<header>
	<div class="container" style="margin-top: 0px;">
		<a href="<?php echo $this->escape($this->baseUrl());?>" id="sitename"><b>Zf</b> <small>blog</small></a>
		
		<nav id="main-nav">
			<?php
 $cates = $this->getCategory();
 if($cates)
 foreach ($cates as $c) {
	?>
	
	<a href="<?php 
echo $this->url(array(
		'controller' => 'category',
		'action' =>'list',
		'alias' => $c['cat_alias']
	), 'category');
	?>">
	<?php echo $c['cat_title']; ?>
	</a>
<?php 
 }
?>
		</nav>
	</div>
</header>